package com.bsj.power.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bsj.power.common.def.entity.AttentionDevice;
import com.bsj.power.common.def.vo.AttentionDeviceVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description
 * @Author zhaoyang
 * @Date 2024/9/2 16:55
 */
@Mapper
@Repository
public interface AttentionDeviceMapper extends BaseMapper<AttentionDevice> {

    /**
     * 添加关注目录和设备的关联信息
     *
     * @param attentionDevices
     */
    void addAll(@Param("list") List<AttentionDevice> attentionDevices);

    /**
     * 根据摄像头数据库id连表查询目录信息
     *
     * @param dids
     * @return
     */
    List<AttentionDeviceVO> selectAttentionDeviceVOByDids(@Param("list") List<Long> dids);
}
